package com.starry.Spring5Demo;

public class Book {
    private String bName;
    private String bAuthor;

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setbAuthor(String bAuthor) {
        this.bAuthor = bAuthor;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bName='" + bName + '\'' +
                ", bAuthor='" + bAuthor + '\'' +
                '}';
    }

    public void TestBook(){
        System.out.println("名称"+bName+"::作者"+bAuthor);

    }
}
